home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
vbkontrol.exe
/
IPD_102N.ZIP
/
ECHO.FRM
next >
Wrap
Text File
|
1995-01-25
|
2KB
|
73 lines
VERSION 2.00
Begin Form Form1
Caption = "ECHO"
ClientHeight = 4590
ClientLeft = 1095
ClientTop = 1485
ClientWidth = 7305
Height = 4995
Left = 1035
LinkTopic = "Form1"
ScaleHeight = 4590
ScaleWidth = 7305
Top = 1140
Width = 7425
Begin IPDAEMON IPDaemon1
EOL = ""
InBufferSize = 2048
Left = 4560
Linger = -1 'True
OutBufferSize = 2048
Port = 0
Top = 120
End
Begin CommandButton Command1
Caption = "Start Listening"
Height = 375
Left = 5160
TabIndex = 0
Top = 120
Width = 1695
End
End
Sub Command1_Click ()
IPDaemon1.Listening = False
IPDaemon1.Port = 7
IPDaemon1.Listening = True
End Sub
Sub Form_Paint ()
Cls
Print "You can test by clicking on the button:"
Print "...and then telnet-ing to " & IPDaemon1.LocalHostName & " 7"
Print "...from this machine, or another machine."
Print ""
End Sub
Sub IPDaemon1_Connected (ConnectionID As Integer, StatusCode As Integer, Description As String)
Print "Connected to: " & IPDaemon1.RemoteHost(ConnectionID)
End Sub
Sub IPDaemon1_DataIn (ConnectionID As Integer, Text As String, EOL As Integer)
Print IPDaemon1.RemoteHost(ConnectionID) & " says: " & Text
Print ">>> I say: " & Text
IPDaemon1.DataToSend(ConnectionID) = Text
End Sub
Sub IPDaemon1_Disconnected (ConnectionID As Integer, StatusCode As Integer, Description As String)
Print "Disconnected: ConnectionID = " & ConnectionID & " - Address forgotten :-)."
End Sub